home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Tele / Internet / NewsWatch Folder / headers / NNTPLow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-03  |  789 b   |  26 lines  |  [TEXT/MPS ]

  1. #ifndef _NNTPLOW_
  2. #define _NNTPLOW_
  3.  
  4. /* state variables for parsing */
  5.  
  6. #define cNormal            0
  7. #define cLastCR            1
  8. #define cLastLF            2
  9. #define cLastDot        3
  10. #define cLastDotCR        4
  11. #define cLastDotCRLF    5
  12.  
  13. OSErr StartNNTP(void);
  14. OSErr InitNNTP(void);
  15. OSErr OpenNewsConnection(unsigned long address);
  16. OSErr CloseNewsConnection(void);
  17. OSErr AbortNewsConnection(void);
  18. OSErr GetGroupList(short *numGroups);
  19. Boolean ParseGroup(char *groupString,short groupLen,TGroup *groupStorage);
  20. OSErr GetMessages(char *newsGroup,long first,long last,TSubject *subjects,long *numSubjects,char *hdrName);
  21. OSErr GetArticle(char *newsGroup,char *article,char **text,long *length,long maxLength);
  22. OSErr ResetConnection(void);
  23. OSErr GetHello(void);
  24. Boolean SendNNTP(char *text,unsigned short tLength);
  25.  
  26. #endif _NNTPLOW_